package com.tapmobi.xrtb;

import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.InputStream;
import java.net.URL;

public class Urltest {

    public static void main(String[] args) throws Exception {

        InputStream is = new URL("http://d4ncyptx4ant1.cloudfront.net/de36a701-8d75-4842-9f96-b1e3860c0374_1180803.jpeg").openStream();
        BufferedImage sourceImg = ImageIO.read(is);
        int width = sourceImg.getWidth();
        int height = sourceImg.getHeight();
        System.out.println(width + "*"+ height);



    }
}
